<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html lang="#{localeBean.language}"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    
    <f:metadata>
        <f:event type="preRenderView" listener="#{accountsBean.loginRedirect}" />
    </f:metadata> 
    
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <ui:insert name="htmlHead" />
    </h:head>
    
    <h:body>
        <h:form>
            <h:outputStylesheet name="style.css" library="css" />
            <h:outputStylesheet name="index.css" library="css" />
            <h:outputScript name="addTemplate.js" library="js" />
        </h:form>
        
        <ui:include id="contentid" src="header1.xhtml" />
        
        <div id="site">
            <div id="left-col" class="col">
                <ui:insert name="mainContent">
                </ui:insert>
            </div>
            
            <div id="right-col" class="col">
                <ui:insert name="secondaryContent">
                </ui:insert>
            </div>
        </div>
        
        <ui:include id="contentid" src="footer.xhtml" />
    </h:body>
</html>
